package com.guang.mapper;

import com.guang.bean.User;
import com.guang.page.bean.Page;
import org.apache.ibatis.annotations.Param;

import javax.annotation.security.PermitAll;
import java.util.List;

/**
 * @author liguang
 * @date 2022/5/23 15:15
 */
public interface UserMapper {

    List<User> qeuryAllUser();

    List<User> qeuryAllUserById(Integer id);

    int updateByUserId(@Param("sex") String sex,@Param("id") Integer id);

    int updateName(@Param("id") Integer id,@Param("sex")String sex);

    int updateById(@Param("user") User user);

    User queryUserById(@Param("id") Integer id);

    List<User> queryUserByPage(Page page);

    List<User> queryUserByPageTwo(@Param("sex") String sex,Page page);
}
